



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    
    <title>附录B 常用API &mdash; Nginx开发从入门到精通</title>
    <link rel="stylesheet" href="_static/book.css" type="text/css" />
    <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
    <link rel="stylesheet" href="_static/comment.css" type="text/css" />
    <script type="text/javascript">
      var DOCUMENTATION_OPTIONS = {
        URL_ROOT:    '',
        VERSION:     '0.1',
        COLLAPSE_INDEX: false,
        FILE_SUFFIX: '.html',
        HAS_SOURCE:  true
      };
    </script>
    <script type="text/javascript" src="../js/??ga.js,correctpng.js?v=1"></script>
    <script type="text/javascript" src="_static/jquery.js"></script>
    <script type="text/javascript" src="_static/underscore.js"></script>
    <script type="text/javascript" src="_static/doctools.js"></script>
    <script type="text/javascript" src="_static/booktools.js"></script>
    <script type="text/javascript" src="_static/translations.js"></script>
    <script type="text/javascript" src="_static/comment.js"></script>
    <link rel="top" title="Nginx开发从入门到精通" href="index.html" />
    <link rel="next" title="附录C 模块编译，调试与测试" href="appendix_c.html" />
    <link rel="prev" title="附录A 编码风格 (100%)" href="appendix_a.html" /> 
  </head>
  <body lang="zh-Hans">
    <div class="related">
      <h3>导航</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="genindex.html" title="总目录"
             accesskey="I">索引</a></li>
        <li class="right" >
          <a href="appendix_c.html" title="附录C 模块编译，调试与测试"
             accesskey="N">下一页</a> |</li>
        <li class="right" >
          <a href="appendix_a.html" title="附录A 编码风格 (100%)"
             accesskey="P">上一页</a> |</li>
        <li><a href="index.html">Nginx开发从入门到精通</a> &raquo;</li> 
      </ul>
    </div>  

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body">
            
  <div class="section" id="b-api">
<h1>附录B 常用API<a class="headerlink" href="#b-api" title="永久链接至标题">¶</a></h1>
<div class="section" id="b-1">
<h2>B.1 字符串操作<a class="headerlink" href="#b-1" title="永久链接至标题">¶</a></h2>
</div>
<div class="section" id="b-2">
<h2>B.2 读取请求体<a class="headerlink" href="#b-2" title="永久链接至标题">¶</a></h2>
</div>
<div class="section" id="b-3">
<h2>B.3 操作请求头<a class="headerlink" href="#b-3" title="永久链接至标题">¶</a></h2>
</div>
<div class="section" id="b-4">
<h2>B.4 取参数<a class="headerlink" href="#b-4" title="永久链接至标题">¶</a></h2>
</div>
<div class="section" id="b-5-uri">
<h2>B.5 URI处理<a class="headerlink" href="#b-5-uri" title="永久链接至标题">¶</a></h2>
</div>
<div class="section" id="b-6-buffer">
<h2>B.6 buffer操作<a class="headerlink" href="#b-6-buffer" title="永久链接至标题">¶</a></h2>
</div>
<div class="section" id="b-7">
<h2>B.7 变量操作<a class="headerlink" href="#b-7" title="永久链接至标题">¶</a></h2>
</div>
<div class="section" id="b-8">
<h2>B.8 日志输出<a class="headerlink" href="#b-8" title="永久链接至标题">¶</a></h2>
</div>
<div class="section" id="b-9">
<h2>B.9 配置解析接口<a class="headerlink" href="#b-9" title="永久链接至标题">¶</a></h2>
</div>
<div class="section" id="b-10">
<h2>B.10 文件操作<a class="headerlink" href="#b-10" title="永久链接至标题">¶</a></h2>
</div>
<div class="section" id="b-11">
<h2>B.11 锁操作<a class="headerlink" href="#b-11" title="永久链接至标题">¶</a></h2>
</div>
</div>


          </div>
        </div>
      </div>
      <div class="sphinxsidebar">
        <div class="sphinxsidebarwrapper">
            <p class="logo"><a href="http://tengine.taobao.org/">
              <img class="logo" src="_static/logo.png" alt="Logo"/>
            </a></p>
  <h3><a href="index.html">內容目录</a></h3>
  <ul>
<li><a class="reference internal" href="#">附录B 常用API</a><ul>
<li><a class="reference internal" href="#b-1">B.1 字符串操作</a></li>
<li><a class="reference internal" href="#b-2">B.2 读取请求体</a></li>
<li><a class="reference internal" href="#b-3">B.3 操作请求头</a></li>
<li><a class="reference internal" href="#b-4">B.4 取参数</a></li>
<li><a class="reference internal" href="#b-5-uri">B.5 URI处理</a></li>
<li><a class="reference internal" href="#b-6-buffer">B.6 buffer操作</a></li>
<li><a class="reference internal" href="#b-7">B.7 变量操作</a></li>
<li><a class="reference internal" href="#b-8">B.8 日志输出</a></li>
<li><a class="reference internal" href="#b-9">B.9 配置解析接口</a></li>
<li><a class="reference internal" href="#b-10">B.10 文件操作</a></li>
<li><a class="reference internal" href="#b-11">B.11 锁操作</a></li>
</ul>
</li>
</ul>

  <h4>上一个主题</h4>
  <p class="topless"><a href="appendix_a.html"
                        title="上一章">附录A 编码风格 (100%)</a></p>
  <h4>下一个主题</h4>
  <p class="topless"><a href="appendix_c.html"
                        title="下一章">附录C 模块编译，调试与测试</a></p>
  <h3>本页</h3>
  <ul class="this-page-menu">
    <li><a href="_sources/appendix_b.txt"
           rel="nofollow">显示源代码</a></li>
  </ul>
<div id="searchbox" style="display: none">
  <h3>快速搜索</h3>
    <form class="search" action="search.html" method="get">
      <input type="text" name="q" />
      <input type="submit" value="搜索" />
      <input type="hidden" name="check_keywords" value="yes" />
      <input type="hidden" name="area" value="default" />
    </form>
    <p class="searchtip" style="font-size: 90%">
    输入相关的模块，术语，类或者函数名称进行搜索
    </p>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
        </div>
      </div>
      <div class="clearer"></div>
    </div>
    <div class="related">
      <h3>导航</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="genindex.html" title="总目录"
             >索引</a></li>
        <li class="right" >
          <a href="appendix_c.html" title="附录C 模块编译，调试与测试"
             >下一页</a> |</li>
        <li class="right" >
          <a href="appendix_a.html" title="附录A 编码风格 (100%)"
             >上一页</a> |</li>
        <li><a href="index.html">Nginx开发从入门到精通</a> &raquo;</li> 
      </ul>
    </div>
    <div class="footer">
        &copy; 版权所有 2012, taobao.
      使用 <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.1.3.
    </div>
  </body>
</html>